Class sjl.FuncTextWriter
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sjl.FuncTextWriter

java.lang.Object
   |
   +----sjl.FuncTextWriter

public class FuncTextWriter
extends Object
implements Function2
A function object that writes objects to a DataOutputStream. A textual representation of the objects is created by calling the toString() method. Objects of this class is used by the OutputStreamIterator as the writer object.
    String[] strings = { "apples", "oranges", "bananas" };
    Algo.copy(Array.begin(strings), Array.end(strings),
            new OutputStreamIterator(System.out, new FuncTextWriter(), "\n");
will print the fruits on the System.out stream.

Copyright © 1996 Finn Bock


Constructor Index

 o FuncTextWriter()

Method Index

 o perform(Object, Object)
Write objects to a DataOutputStream.

Constructors

 o FuncTextWriter
  public FuncTextWriter()

Methods

 o perform
  public Object perform(Object o1,
                        Object o2)
Write objects to a DataOutputStream.
Parameters:
o1 - The DataOutputStream.
o2 - The object to be written.
Returns:
The return value is ignored.

All Packages  Class Hierarchy  This Package  Previous  Next  Index